home *** CD-ROM | disk | FTP | other *** search
-
- #define RLIMIT_CPU 0 /* cpu time */
- #define RLIMIT_FSIZE 1 /* maximum file size */
- #define RLIMIT_DATA 2 /* maximum data size */
- #define RLIMIT_STACK 3 /* maximum stack size */
- #define RLIMIT_CORE 4 /* maximum core file size */
- #define RLIMIT_RSS 5 /* resident set size */
-
- #define RLIM_INFINITY 0x7FFFFFFFL
-
- struct rlimit {
- int rlim_cur; /* current limit */
- int rlim_max; /* maximal limit */
- };
-
- #if ((defined(__STDC__)) && (!defined(__NO_PROTO__)))
- int getrlimit(int resource, struct rlimit *rlp);
- int setrlimit(int resource, struct rlimit *rlp);
- #else
- int getrlimit();
- int setrlimit();
- #endif /* __STDC__ */
-